# 是否开启debug模式
debug = True
daemon = True
# 访问地址
bind = "0.0.0.0:8100"
# 工作进程数
worker_class = 'uvicorn.workers.UvicornWorker'
workers = 1
# 超时时间
timeout = 30
# 输出日志级别
loglevel = 'debug'
# 存放日志路径
pidfile = "log/gunicorn.pid"
# 存放日志路径
accesslog = "log/access.log"
# 存放日志路径
errorlog = "log/debug.log"

#命令 gunicorn -c config.py app:app
# sudo pkill -f "gunicorn"
# ps aux | grep 'gunicorn'
#命令 gunicorn app:app --workers 1 --worker-class uvicorn.workers.UvicornWorker --bind 0.0.0.0:8100 --access-logfile access.log --error-logfile error.log